function fixdata(data: ArrayBuffer) { // 文件流转BinaryString
	let o = "";
	const w = 10240;
	let l = 0;
	for (l; l < data.byteLength / w; ++l) {
		o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w, l * w + w)));
	}
	o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w)));
	return o;
}

export default function excel_json(data: ArrayBuffer) {
	return btoa(fixdata(data));
}
